package cn.edu.cdut.dao;

import cn.edu.cdut.model.ScoreInfo;
import org.springframework.data.repository.Repository;

import java.util.List;

/**
 * Author  kobe
 * Created on 2017-06-01-20:51
 */
public interface MyScoreInfoDao extends Repository<ScoreInfo, Long> {
        //boolean exists(String classId);
        List<ScoreInfo> findByStuId(String stuId);
        List<ScoreInfo> findByClassId(String classId);
        List<ScoreInfo> findByCourse(String course);
        List<ScoreInfo> findByStuIdAndCourse(String stuId, String course);
}
